package com.xiaohong.order;

import entity.IdWorker;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

/**
 * @author xiaohong
 * @Description
 * @date 2020/10/26 0026 22:02
 */
@SpringBootApplication
@EnableEurekaClient
@MapperScan(basePackages = {"com.xiaohong.order.dao"})
@EnableFeignClients(basePackages = {"com.xiaohong.user.feign","com.xiaohong.goods.feign"})
public class OrderApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
    }

    @Bean
    public IdWorker createIdWorker(){
        return new IdWorker(1,2);
    }
}
